package com.nageoffer.shortlink.admin.common.enums;

import com.nageoffer.shortlink.admin.common.convention.errorcode.IErrorCode;

public enum UserErrorCode implements IErrorCode {
    USR_NOT_EXIST("B000200","用户不存在"),
    USR_ALREADY_EXIST("B000201","用户已经存在"),
    USR_NAME_ALREADY_EXIST("B000202","用户名已存在"),
    USR_SAVE_FAILURE("B000203","用户新增失败"),
    USR_ALREADY_LOGIN("B0002034","用户已经登陆");

    private final String code;

    private final String message;

    UserErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
